package com.wt.dao.idao;

import com.wt.entity.Order;

import java.sql.SQLException;
import java.util.List;

public interface IOrderDao {
    //根据用户名查询所有订单
    List<Order> selectAllOrder(String name) throws SQLException;
    //根据订单编号修改订单状态
    Boolean updateOrderStater(Integer orderId,Integer stater) throws SQLException;
    //新建订单
    Boolean addOrder(Order order) throws SQLException;
    //取消、删除订单
    Boolean delOrder(Integer orderId) throws SQLException;
}
